using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using FITHOU.DO;
using FITHOU.BL;

namespace FITHOU.FormDesign
{
    public partial class frConfig : DevExpress.XtraEditors.XtraForm
    {
        Sysconfig obj = new Sysconfig();
        public frConfig()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {
                int sc = int.Parse(txtSoCau.Text);
                int tg = int.Parse(txtThoiGian.Text);
                MainForm Child = new MainForm(sc,tg);
                
                //Child.SC = int.Parse(txtSoCau.Text);
                //Child.TG = int.Parse(txtThoiGian.Text);
                //this.MdiParent.Dispose();
                this.Dispose();
                
                //this.MdiParent.Show();
            }
            catch(Exception ee)
            {
                MessageBox.Show("" + ee.ToString());
            }
        }
    }
}